<?php
/**
 *
 *
 */
namespace Yz\modules\Router;
class Module
    extends \Yz_Module_Abstract
    implements \Yz_Module_RouterModule_Interface
{

    /** This MUST be present in each descendant in order for LSB to work correctly
     *  @var Yz_Module_Interface&
     */
    protected static $instance;

    public function selectRouter()
    {
        $class = $this->resolve("Router_Default");
        if (false === $class) {
            throw new Yz_Exception("Router not found");
        }
        $router = new $class();
        return $router;
    }

}
